home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
JFC.bin
/
FileFilter.java
< prev
next >
Wrap
Text File
|
1998-06-30
|
2KB
|
53 lines
/*
* @(#)FileFilter.java 1.3 98/04/14
*
* Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved.
*
* This software is the confidential and proprietary information of Sun
* Microsystems, Inc. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Sun.
*
* SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
* SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
* SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
* THIS SOFTWARE OR ITS DERIVATIVES.
*
*/
package com.sun.java.swing.preview.filechooser;
import java.io.File;
/**
* FileFilter is an abstract class that has no default implemention.
* A FileFilter, once implemented, can be set on a JFileChooser to
* keep unwanted files from appearing in the directory listing.
*
* A default implementation (ExtensionFileFilter) is currently in the
* FileChooserDemo directory, and will become a first class swing
* implementation in Swing 1.0.3.
*
* @see JFileChooser#setFileFilter
* @see JFileChooser#setChoosableFileFilter
* @see SimpleFileFilter
*
* @version 1.3 04/14/98
* @author Jeff Dinkins
*/
public abstract class FileFilter {
/**
* Whether the given file is accepted by this filter.
*/
public abstract boolean accept(File f);
/**
* The description of this filter. For example: "JPG and GIF Images"
* @see FileView#getName
*/
public abstract String getDescription();
}